package models

type SysUserRole struct {
	ID
	UserId uint `json:"user_id" gorm:"not null;index:idx_user_role"`
	RoleId uint `json:"role_id" gorm:"not null;index:idx_user_role"`
	Timestamps
	SoftDeletes
}

func (SysUserRole) TableName() string {
	return "sys_user_roles"
}

type SysRoleMenu struct {
	ID
	RoleId uint `json:"role_id" gorm:"not null;index:idx_role_menu"`
	MenuId uint `json:"menu_id" gorm:"not null;index:idx_role_menu"`
	Timestamps
	SoftDeletes
}

func (SysRoleMenu) TableName() string {
	return "sys_role_menus"
}
